<?php
/**
 * Created by PhpStorm.
 * User: peter
 * Date: 2018/9/14
 * Time: 下午5:34
 */

namespace app\admin\controller;


use think\Request;

class Area extends Auth
{
    /**
     * @purpose 通过PID获取区域列表
     * @param Request $request
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function itemByPid (Request $request)
    {
        $pid        = $request->get('pid', 0);
        return  \app\admin\logic\Area::itemByPid($pid);
    }
}